package org.qiyu.live.user.provider.rpc;

import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
import org.qiyu.live.user.interfaces.IUserTagRpc;
import org.qiyu.live.user.constants.UserTagsEnum;
import org.qiyu.live.user.provider.service.IUserTagService;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-09-22
 * Time: 22:54
 */
@DubboService // 实现dubbo服务
public class UserTagRpcImpl implements IUserTagRpc {
    @Resource
    private IUserTagService userTagService;

    @Override
    public boolean setTag(Long userId, UserTagsEnum userTagEnum) {
        return userTagService.setTag(userId, userTagEnum);
    }

    @Override
    public boolean cancelTag(Long userId, UserTagsEnum userTagEnum) {
        return userTagService.cancelTag(userId, userTagEnum);
    }

    @Override
    public boolean containsTag(Long userId, UserTagsEnum userTagEnum) {
        return userTagService.containsTag(userId, userTagEnum);
    }
}